package com.flute.framework.search.strategy;

import com.flute.framework.spliter.WordSpliter;
import com.flute.framework.stringprocessor.SplitStringProcessor;
import com.flute.tools.word.ISpliter;

public class SplitedSearchStrategy extends AbstractTermSearchStrategy {
	private ISpliter spliter;
	
	@Override
	public boolean isAllWordMeet() {
		return true;
	}

	@Override
	public String process(String string) {
		if (spliter == null) {
			spliter = WordSpliter.getInstance();
		}
		return new SplitStringProcessor(spliter).process(string);
	}
}
